import Layout from "@/layout/index.vue";
import Home from "@/views/home/index.vue";

const routes = [
  {
    path: "/",
    name: "root",
    component: Layout,
    redirect: { name: "Casino" },
    children: [
      {
        path: "home",
        name: "Home",
        component: () => import("@/views/casino/index.vue"),
        meta: {
          title: "casino"
        }
      },
      {
        path: "menu",
        name: "Menu",
        component: () => import("@/components/menu/index.vue"),
        meta: {
          title: "menu",
          noCache: true
        }
      },
      {
        path: "favorites",
        name: "Favorites",
        component: () => import("@/views/user/favorites.vue"),
        meta: {
          title: "favorites",
          noCache: true
        }
      },
      {
        path: "recent",
        name: "Recent",
        component: () => import("@/views/user/recent.vue"),
        meta: {
          title: "recent",
          noCache: true
        }
      },
      {
        path: "casino",
        name: "Casino",
        component: () => import("@/views/casino/index.vue"),
        meta: {
          title: "casino",
          noCache: true
        }
      },
      {
        path: "sports",
        name: "Sports",
        component: () => import("@/views/sports/index.vue"),
        meta: {
          title: "Sports"
        }
      },
      // {
      //   path: "theCharts",
      //   name: "TheCharts",
      //   component: () => import("@/views/theCharts/index.vue"),
      //   meta: {
      //     title: "TheCharts",
      //   }
      // },
      {
        path: "vip",
        name: "Vip",
        component: () => import("@/views/user/vip.vue"),
        meta: {
          title: "vip",
          noCache: true
        }
      },
      {
        path: "setting",
        name: "Setting",
        component: () => import("@/views/user/setting.vue"),
        meta: {
          title: "Setting",
          noCache: true
        }
      },
      {
        path: "myBet",
        name: "MyBet",
        component: () => import("@/views/user/myBet.vue"),
        meta: {
          title: "MyBet",
          noCache: true
        }
      },
      {
        path: "tsaHistory",
        name: "TsaHistory",
        component: () => import("@/views/user/tsaHistory.vue"),
        meta: {
          title: "TsaHistory",
          noCache: true
        }
      },
      {
        path: "programe",
        name: "Programe",
        component: () => import("@/views/user/programe.vue"),
        meta: {
          title: "Programe",
          noCache: true
        }
      },
      {
        path: "responsible",
        name: "Responsible",
        component: () => import("@/views/user/responsible.vue"),
        meta: {
          title: "smart-stake",
          noCache: true
        }
      },
      {
        path: "aboutus",
        name: "Aboutus",
        component: () => import("@/views/user/aboutUs.vue"),
        meta: {
          title: "Aboutus",
          noCache: true
        }
      },
      {
        path: "active",
        name: "Active",
        component: () => import("@/views/user/active.vue"),
        meta: {
          title: "Active",
          noCache: true
        }
      },
      {
        path: "operator",
        name: "Operator",
        component: () => import("@/views/gameoperator/index.vue"),
        meta: {
          title: "Operator",
          noCache: true
        }
      },
      {
        path: "operatorDetals",
        name: "OperatorDetals",
        component: () => import("@/views/gameoperator/operatorDetals.vue"),
        meta: {
          title: "OperatorDetals",
          noCache: true
        }
      },
      {
        path: "iframe",
        name: "Iframe",
        component: () => import("@/views/iframe/iframe.vue")
      },
      {
        path: "phone",
        name: "Phone",
        component: () => import("@/views/phone/index.vue"),
        meta: {
          title: "Phone",
          noCache: true
        }
      },
      {
        path: "service",
        name: "Service",
        component: () => import("@/views/service/index.vue"),
        meta: {
          title: "Service",
          noCache: true
        }
      },
      {
        path: "gameDetails",
        name: "GameDetails",
        component: () => import("@/views/gameDetails/index.vue"),
        meta: {
          title: "GameDetails",
          noCache: true
        }
      },
      {
        path: "activity",
        name: "Activity",
        component: () => import("@/views/activity/index.vue"),
        meta: {
          title: "活动",
          noCache: true
        }
      },
      {
        path: "details",
        name: "Details",
        component: () => import("@/views/activity/details.vue"),
        meta: {
          title: "活动详情",
          noCache: true
        }
      }
    ]
  },
  {
    path: "/phoneIframe",
    name: "PhoneIframe",
    component: () => import("@/views/iframe/phoneIframe.vue")
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/user/login.vue")
  }
];

export default routes;
